{% extends "::layout.html.twig" %}

{% block css %}
    {% stylesheets '@bo_css' %}
        <link rel="stylesheet" href="{{ asset_url }}" type="text/css" />
    {% endstylesheets %}
{% endblock %}

{% block header %}
{{ render(controller("GairalAdminBundle:Admin:menu", {'routeName' : app.request.attributes.get('_route')})) }}
{% endblock %}

{% block body %}
    <section class="main-wrapper container-fluid ">
    {% for type, flashMessages in app.session.flashbag.all() %}
        {% for flashMessage in flashMessages %}
            <div class="alert alert-block alert-{{ type }}">
                <h4 class="alert-heading">{{ type|title }}</h4>
                {{ flashMessage }}
            </div>
        {% endfor %}
    {% endfor %}
    {% block bodyAdmin %}
    {% endblock %}
        </section>
{% endblock %}

{% block js %}
    {% javascripts '@nicedit' %}
    <script src="{{ asset_url }}" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    bkLib.onDomLoaded(function() {
        var myNicEditor = new nicEditor({iconsPath: '{{ asset('img/nicEditorIcons.gif') }}'});
        $(".ckeditor").each(function() {
            myNicEditor.panelInstance($(this).attr('id'));
        });
        
    });
    //]]>
    </script>
    {% endjavascripts %}
{% endblock %}